﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

public partial class Pages_WebControls_OfertaMini : System.Web.UI.UserControl
{
    private StoreApplicationService sas = new StoreApplicationService();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void PopulateRepeter(object sender, EventArgs e)
    {
        var prod = sas.GetBestOffer();
        var list = new List<Store.DateModel.ProductView>();
        list.Add(prod);
        OfferRepeter.DataSource = list;
        OfferRepeter.DataBind();
    }
}